using CSharpPro._0923;
using CSharpPro._0928;
using CSharpPro._0930;
using CSharpPro._1014;
using CSharpPro._1021;
using CSharpPro._1028;
using UserService = CSharpPro._1028.UserService;

namespace CSharpPro;

public class program
{
    static void Main(string[] args)
    {
    //0923
        // Work1 a = new Work1();
        // Work2 b = new Work2();
        // a.Test1();
        // b.Test2();
    //0928
        // Work3 c = new Work3();
        // Work4 d = new Work4();
        // c.flower();
        // d.zhiShu();
    //0930
        // Work5 e = new Work5();
        // Work6 f = new Work6();
        // e.Test3();
    //1014
        // Work7 g = new Work7();
    //1021
        //创建抽象类UserTest，定义三个抽象方法，名字分别为：M1,M2,M3，在子类中重写抽象方法
        // UserTest test = new UserTestImpl();
        //
        // test.M1();
        // Console.WriteLine("M2返回值：{test.M2("Hello World")}");
        // test.M3(15.5, true);
        // test.M3(20.0, false);
        //创建接口UserService，定义增删改查4个方法，在实现类UserServiceImpl中实现这些方法
        // UserService userService = new UserServiceImpl();
        //
        //  增
        // userService.AddUser(new User { Name = "张三", Age = 25 });
        // userService.AddUser(new User { Name = "李四", Age = 30 });
        //
        //  查
        // userService.GetUserById(1);
        //
        //  改
        // userService.UpdateUser(new User { Id = 1, Name = "张三（已更新）", Age = 26 });
        //
        //  删
        // userService.DeleteUser(2);
    //1028
        IUserService userService = new UserService();
        userService.Run(args);
    }
}
    



